package com.sjr.easy.chat.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("消息投递表")
public class OutboxMessage {

    @ApiModelProperty("")
    private Long id;

    @ApiModelProperty("")
    private Long inboxMessageId;

    @ApiModelProperty("")
    private Long conversationId;

    @ApiModelProperty("发送人id")
    private Long sourceUserId;

    @ApiModelProperty("接受人id")
    private Long targetUserId;

    @ApiModelProperty("聊天群ID")
    private Long chatGroupId;

    @ApiModelProperty("0 文字消息")
    private Long messageType;

    @ApiModelProperty("0 待投递 1 已投递(客户端ack成功)")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("发送时间")
    private Date sendTime;

    @ApiModelProperty("消息")
    private String message;

}